/**
 * @Author:DarknessShadow
 * @description:模板父类
 * @date 2020/5/11 9:46
 */
public abstract class AbstractDisplay {
    public abstract void open();
    public abstract void print();
    public abstract void close();
    public void display(){
        open();
        for (int i = 0; i < 5; i++) {
            print();
        }
        close();
    }
}
